import request from '@/utils/request'


// 获取分组列表
export function getPatientGroupList() {
  return request({
    url: '/patient/getPatientGroupList',
    method: 'get'
  })
}

// 获取分组内患者列表
export function getPatientList(groupId) {
  return request({
    url: '/patient/getPatientList/'+groupId,
    method: 'get'
  })
}

// 添加分组列表
export function addPatientGroup(groupName) {
  return request({
    url: '/patient/addPatientGroup',
    method: 'put',
    params: {
      groupName
    }
  })
}

// 删除分组列表
export function deletePatientGroup(groupId) {
  return request({
    url: '/patient/deletePatientGroup/'+groupId,
    method: 'delete'
  })
}
